﻿namespace Numbrella.TaskSamples.PiMonteCarlo
{
	using Numbrella.Core;
	
	public class ResultValidator : IResultValidator<ResultContents>
	{
		public bool IsCorrect(TaskResult<ResultContents> result)
		{
		    return System.Math.Abs(((4 * result.Contents.DropsSum) / result.Contents.DropsCount) - 3) < 1;
		}
	}
}
